{% load controls %}
{% extends "admin_base.html" %}

{% block extrastyles %}
<link rel="stylesheet" type="text/css" media="all" href="/media/admin/css/treeview.css" />
{% endblock %}

{% block extrascripts %}
<script type="text/javascript" src="/media/admin/js/jquery.corners.js"></script>
<script type="text/javascript" src="/media/admin/js/interface.js"></script>
<script type="text/javascript" src="/media/admin/js/treeview.js"></script>
<script type="text/javascript" src="/media/admin/js/datePicker.js"></script>
{% block extrascripts2 %}{% endblock %}
<script type="text/javascript">
    $(document).ready(function() {
        $.datePicker.setDateFormat('ymd','-');
        $('input[@name=pubblication]').datePicker({startDate:'01/01/2000', endDate:'01/01/2100'});
        $("ul.section").Treeview({ 
        	speed:"fast", 
        	collapsed:false
        });
        $("div.fieldset").corner();
        $("div.row-wrapper").corner();
        $("div.form-row").corner();
    });
</script>
{% endblock %}

{% block content-selected %}class="selected"{% endblock %}
{% block users-selected %}{% endblock %}
{% block filebrowser-selected %}{% endblock %}

{% block main %}
<div id="subheader">
	{% block subheader %}<h1>amministrazione contenuti</h1>{% endblock %}
</div>

<div class="content-block">
	{% block content %}
	<div>
		<div class="fieldset">
			<h1>Albero dei contenuti</h1>
			<div class="default-tree">
				<ul class="section">
		        	{% get_list of "core.Section" using "widgets/content_tree" %}
				</ul>
			</div>
		</div>
	</div>
	{% endblock %}
</div>
{% endblock %}
